<?php 
if (! defined('BASEPATH')) {
	exit('Access Denied');
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>插件添加</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/static/css/admin/base.css">
<link rel="stylesheet" href="<?php echo base_url();?>/static/js/editor/themes/default/default.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/static/css/admin/window.css" />
<style>
img{
	cursor:pointer
}
</style>
<script src="<?php echo base_url();?>/static/js/jquery.js" language="javascript"></script>

<script src="<?php echo base_url();?>/static/js/validate/validator.js" language="javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
//提交
$("#btnSave").click(function(){
    if($("#newform").Valid() == false || !$("#newform").Valid()) return false;
});

});
//添加
var i_num = 1 ;
function add_controller(){
	var s = '<tr align="" bgcolor="#FAFAF1" height="32" id="myid_'+i_num+'">';
	s+='<td><span style="margin-left:40px"></span>控制器'+i_num+':&nbsp;&nbsp;&nbsp;控制器名称：<input type="text" name="c_name[]" style="width:140px; height:22px"> &nbsp;&nbsp;路径：<input type="text" name="c_path[]" style="width:280px; height:22px">&nbsp;&nbsp;是否是功能性:<select id="isfunction" name="isfunction[]"><option value="1">是</option><option value="0" selected="selected">否</option></select>如果<font color="red">否</font>将在左边菜单显示&nbsp;&nbsp;<img src="<?php echo base_url();?>/static/image/admin/gtk-del.png" onclick="del_('+i_num+')" title="点击删除" alt="点击删除"> </td>';
	s+='</tr>';
	$("#myadd").append(s);
	i_num++ ;
}
function del_(id){
	$("#myid_"+id).remove();
}
</script>
</head>
<body leftmargin="8" topmargin="8">
<div class="nav_des">
<span class="des">插件管理>></span>

	<a href="<?php echo site_url("admin/plus_manager/index/pluginlist");?>" >插件管理</a>
	<a href="<?php echo site_url("admin/plus_manager/index/plugin_add");?>" class="nav_des_hover"> 插件添加</a>
</div>

<!--  内容列表   -->


<form name="form2" method="post" name="" action="<?php echo site_url("admin/plus_manager/index/plugin_add");?>" id="newform">

<input type="hidden" value="add_do" name="action">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7" >
	<td height="24" colspan="" >&nbsp;插件添加&nbsp;</td>
</tr>
<tr align="" bgcolor="#FAFAF1" height="36">
	<td>插件名称:<input type="text" name="plus_name" class="form_input"  required="true" errmsg="请输入60个字符之内" tip="请输入60个字符之内" style="width:300px"> </td>
</tr>



<tr align="" bgcolor="#FAFAF1" height="32">
	<td >插件状态:
	<select name="status" style="width:300px">
		<option value="1">开启</option>
		<option value="0" >关闭</option>
		<option value="2">删除</option>
	</select>
	</td>
</tr>


<!--
<tr align="" bgcolor="#FAFAF1" height="32">
	<td >控制器方法:
		<img src="<?php echo base_url();?>/static/image/admin/add.png" width="16px" height="16px" onclick="add_controller();" style="cursor:pointer"><b>此处的控制器主要是控制权限</b>
	</td>
</tr>
-->
<tbody id="myadd">


</tbody>
<tr bgcolor="#FAFAF1">
<td height="28" colspan="">
	&nbsp;

	<input type="submit" value="提&nbsp;&nbsp;交" class="coolbg" id='btnSave'>
</td>
</tr>

</table>

</form>

</body>
</html>